package com.magicsoft.share.adapter.my;

import android.support.annotation.LayoutRes;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.magicsoft.share.R;
import com.magicsoft.share.bean.my.RankList;

/**
 * Created by lyf on 2017/11/7/007.
 */

public class RankAdapter extends BaseQuickAdapter<RankList.ListBean, BaseViewHolder> {

    public RankAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, RankList.ListBean item) {

        helper.setText(R.id.tv_rank, item.getRanking() + "")
                .setText(R.id.tv_id, item.getQixiangNo())
                .setText(R.id.tv_name, item.getNickname())
                .setText(R.id.tv_num, item.getNumber() + "");
    }
}
